package com.threefish.modules.sys.entity;


import com.threefish.common.entity.AbstractBaseEntity;
import com.threefish.modules.sys.enums.Attach;
import org.nutz.dao.entity.annotation.*;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * Created with IntelliJ IDEA.
 *
 * @author 306955302@qq.com
 * 创建人：黄川
 * 创建时间: 2018/2/6  18:10
 * 描述此类：系统附件表
 */
@Table("sys_file_attach")
@Comment("系统附件表")
public class FileAttach extends AbstractBaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Name
    @Prev(els = @EL("$me.uuid()"))
    @ColDefine(width = 32, notNull = true)
    @Comment("主键")
    @Column("id")
    private String id;

    @Column("attachtype")
    @ColDefine(notNull = true)
    private Attach attachtype;

    @Column("fileName")
    @ColDefine(type = ColType.VARCHAR, notNull = true)
    private String fileName;

    @Column("savedpath")
    @ColDefine(type = ColType.VARCHAR, notNull = true)
    private String savedpath;

    @Column("filesize")
    private long filesize;

    @Column("adduser")
    private String adduser;

    @Column("addtime")
    @Comment("操作时间")
    @Prev(els = @EL("$me.now()"))
    @ColDefine(type = ColType.TIMESTAMP)
    private Timestamp addtime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Attach getAttachtype() {
        return attachtype;
    }

    public void setAttachtype(Attach attachtype) {
        this.attachtype = attachtype;
    }

    public String getSavedpath() {
        return savedpath;
    }

    public void setSavedpath(String savedpath) {
        this.savedpath = savedpath;
    }

    public long getFilesize() {
        return filesize;
    }

    public void setFilesize(long filesize) {
        this.filesize = filesize;
    }

    public String getAdduser() {
        return adduser;
    }

    public void setAdduser(String adduser) {
        this.adduser = adduser;
    }

    public Timestamp getAddtime() {
        return addtime;
    }

    public void setAddtime(Timestamp addtime) {
        this.addtime = addtime;
    }
}
